package java44th.group.mapper;

import java.util.LinkedList;
import java.util.List;
import java44th.group.bean.po.MarketCoupon;
import java44th.group.bean.po.MarketCouponExample;
import java44th.group.bean.wx.bo.coupon.CodeBo;
import java44th.group.bean.wx.vo.coupon.CodeVO;
import java44th.group.bean.wx.vo.home.CouponListVO;
import org.apache.ibatis.annotations.Param;

public interface MarketCouponMapper {
    long countByExample(MarketCouponExample example);

    int deleteByExample(MarketCouponExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(MarketCoupon row);

    int insertSelective(MarketCoupon row);

    List<MarketCoupon> selectByExample(MarketCouponExample example);


    MarketCoupon selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("row") MarketCoupon row, @Param("example") MarketCouponExample example);

    int updateByExample(@Param("row") MarketCoupon row, @Param("example") MarketCouponExample example);

    int updateByPrimaryKeySelective(MarketCoupon row);

    int updateByPrimaryKey(MarketCoupon row);

    List<CouponListVO> selectPartColoumn();

    LinkedList<CodeVO> selectCodeByUserId();

    List<MarketCoupon> selectByStstus();

    long selectByStstusCount();

}